package com.jeesite.modules.settlement.entity.carpresettlement;

import com.jeesite.common.collect.ListUtils;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import java.util.Date;
import java.util.List;

/**
 * 车辆预结算
 *
 * @author Kilo
 * @since 2021/3/23 9:55
 */
public class CarPreSettlement extends DataEntity<CarPreSettlement> {

    private static final long serialVersionUID = 1L;
    private String customerId;
    private String serviceOrderId;
    private String frameNumber;
    private Double exchangeRate;
    private Date date;
    private List<CarPreSettlementInvestor> carPreSettlementInvestorList = ListUtils.newArrayList();
    private List<CarPreSettlementCustomer> carPreSettlementCustomerList = ListUtils.newArrayList();
    private Long rowNumber;		// 服务订单行号
    public Long getRowNumber() {
        return rowNumber;
    }

    public void setRowNumber(Long rowNumber) {
        this.rowNumber = rowNumber;
    }


    public List<CarPreSettlementInvestor> getCarPreSettlementInvestorList() {
        return carPreSettlementInvestorList;
    }

    public void setCarPreSettlementInvestorList(List<CarPreSettlementInvestor> carPreSettlementInvestorList) {
        this.carPreSettlementInvestorList = carPreSettlementInvestorList;
    }

    public List<CarPreSettlementCustomer> getCarPreSettlementCustomerList() {
        return carPreSettlementCustomerList;
    }

    public void setCarPreSettlementCustomerList(List<CarPreSettlementCustomer> carPreSettlementCustomerList) {
        this.carPreSettlementCustomerList = carPreSettlementCustomerList;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getServiceOrderId() {
        return serviceOrderId;
    }

    public void setServiceOrderId(String serviceOrderId) {
        this.serviceOrderId = serviceOrderId;
    }

    public String getFrameNumber() {
        return frameNumber;
    }

    public void setFrameNumber(String frameNumber) {
        this.frameNumber = frameNumber;
    }

    public Double getExchangeRate() {
        return exchangeRate;
    }

    public void setExchangeRate(Double exchangeRate) {
        this.exchangeRate = exchangeRate;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getCreateDate_gte() {
        return sqlMap.getWhere().getValue("create_date", QueryType.GTE);
    }

    public void setCreateDate_gte(Date createDate) {
        sqlMap.getWhere().and("create_date", QueryType.GTE, createDate);
    }

    public Date getCreateDate_lte() {
        return sqlMap.getWhere().getValue("create_date", QueryType.LTE);
    }

    public void setCreateDate_lte(Date createDate) {
        sqlMap.getWhere().and("create_date", QueryType.LTE, createDate);
    }
}
